﻿@model workflowMVC.Models.SearchValidateTaskModel

@{
    ViewBag.Title = "ValidateTask";
}

<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>


@using (Ajax.BeginForm("getSearchTableResult", new AjaxOptions { HttpMethod = "PUT", UpdateTargetId = "tasktab" }))
{
    <h3>Tìm kiếm các loại đơn</h3>
<table class="ui-widget-content ui-corner-all" style="margin:auto;padding:5px">        
        <tr>
            <td>
                @Html.LabelFor(model => model.TaskKind)
            </td>
            <td>
                @Html.DropDownListFor(m => m.TaskKind, ViewBag.TaskKindz as SelectList)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.Checker)
            </td>
            <td>
                @Html.DropDownListFor(m => m.Checker, ViewBag.Checkerz as SelectList)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.Approver)
            </td>
            <td>
                @Html.DropDownListFor(m => m.Approver, ViewBag.Approverz as SelectList)
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="TÌM" /></td>
        </tr>
        
    </table>
    }

    <br />

    <div id="tasktab" ></div>